package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <desc>
 *      设备告警消息信息表
 * </desc>
 *
 * @createDate 2021/5/28
 **/
@ItlTables("device_alarm_message_info")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper=true)
public class DeviceAlarmMessageInfoPO extends BasePO implements Serializable {

    @ItlField(value = "alarm_id", logicKey = "key")
    private String alarmId;                 //告警消息id
    @ItlField("elevator_device_unique")
    private String elevatorDeviceUnique;    //电梯设备唯一码
    @ItlField("project_id")
    private String projectId;               //项目id
    @ItlField("alarm_type")
    private Integer alarmType;              //报警类型 32电梯门无异常 33人挡门 34物挡门 35无阻挡长开门 36长时间关门 48电梯内无异常 49电梯困人 50非机动车进电梯 57人员跌倒 64非机动车退出电梯 98 抓拍事件
    @ItlField("alarm_time")
    private Date alarmTime;                 //告警时间
    @ItlField("alarm_photo_url")
    private String alarmPhotoUrl;           //告警图片地址
    @ItlField("candid_photo_url")
    private String candidPhotoUrl;          //抓拍图片地址
    @ItlField("click_mark")
    private Integer clickMark;              //实时抓拍是否再次点击 0不允许点击 1允许点击
}
